<%@ page language="java" import="java.util.*" pageEncoding="UTF-8" %>
<%@ taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html>
<html lang="zh">
<head>
    <jsp:include page="../common/header.jsp" />
</head>
<body>
<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--左侧导航-->
        <aside class="lyear-layout-sidebar">
            <!-- logo -->
            <div id="logo" class="sidebar-header">
                <jsp:include page="../common/title.jsp" />
            </div>
            <div class="lyear-layout-sidebar-scroll">
                <s:if test="%{#session.userRole=='管理员'}">
                    <jsp:include page="../common/menu.jsp" />
                </s:if>
                <s:if test="%{#session.userRole=='教师'}">
                    <jsp:include page="../common/teacher_menu.jsp" />
                </s:if>
                <s:if test="%{#session.userRole=='学生'}">
                    <jsp:include page="../common/student_menu.jsp" />
                </s:if>
            </div>
        </aside>
        <!--End 左侧导航-->
        <s:if test="%{#session.userRole=='管理员'}">
            <jsp:include page="../common/top.jsp" />
        </s:if>
        <s:if test="%{#session.userRole=='教师'}">
            <jsp:include page="../teacher/navigation.jsp" />
        </s:if>
        <s:if test="%{#session.userRole=='学生'}">
            <jsp:include page="../student/navigation.jsp" />
        </s:if>
            </div>

        </main>
        <!--End 页面主要内容-->
    </div>
</div>
</body>
</html>
